import React from 'react';
import { BrowserRouter as Router, Route } from 'react-router-dom';
import Test from './pages/test.js'
// 引入http 并注册到全局
import http from './utils/http'
global.http = http
class App extends React.Component {

    render() {
        return (      
    
            <Router>
            <div>
              <Route exact path="/" component={Test} />
              <Route path="/test" component={Test} />
            </div>
          </Router>
             )
    }
}

export default App